#!/usr/bin/python
# -*- coding: utf-8 -*-
# 曹志强
# 2019.11.20
#from DjangoUeditor.models import UEditorField
from django.db import models

from common.base_model import NameShortModel


# Create your models here.



# 系统分类
class SystemType(NameShortModel):
    typename = models.CharField(verbose_name="分类名称",max_length=20)
    parentid = models.ForeignKey('self',verbose_name="父级",blank=True,null=True,on_delete=models.CASCADE)
    remark = models.CharField(verbose_name="备注",max_length=20,blank=True,null=True)
    rank = models.IntegerField(default=0,verbose_name="排序")

    class Meta:
        verbose_name = '系统分类'
        verbose_name_plural = '系统分类'


#
# class TeaAddress(NameShortModel):
#     pichead = models.FileField(verbose_name="门头图",null=True,blank=True)
#     address = models.CharField(verbose_name="地址",max_length=100)
#     trafic = models.CharField(verbose_name="交通",max_length=20)
#     price = models.IntegerField(verbose_name="人均消费",default=0)
#     ispay = models.BooleanField(verbose_name="强制消费",default=True)
#     istouy = models.BooleanField(verbose_name="有无投影",default=False)
#     peoplenumber = models.IntegerField(verbose_name="适合人数",default=0)
#     shoptype = models.CharField(verbose_name="类型",choices=(("咖啡","咖啡"),("茶","茶"),("书吧","书吧"),("茶餐","茶餐"),("场地","场地"),("其它","其它"),),max_length=10)  # 咖啡,茶,书吧,茶餐,场地
#     dateck = models.IntegerField(verbose_name="参考时间",default=2020)
#     miaoshu = UEditorField(verbose_name="描述",null=True,blank=True)
#     remark = models.CharField(verbose_name="备注",max_length=50,null=True,blank=True)
#     class Meta:
#         verbose_name = '茶楼地址'
#         verbose_name_plural = '茶楼地址'